<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User
 *
 * @author bry
 */
class User {
    
    /**
     *
     * @var User
     */
    private static $_instance = null;
    
    private $username;
    private $password;
    
    /**
     * 
     * @return User
     */
    public static function getInstance() {
        if(self::$_instance == null)
            self::$_instance = new User();
        return self::$_instance;
    }
    
    public function isAuthenticated($username,$password) {
        $this->username = $username;
        $this->password = $password;
        return true;
    }
    
    public function isLogin() {
        
    }
    
    public function getID(){
        return 1;
    }
    
    public function logOut() {
        
    }
}

?>
